<html>
<head><meta charset="utf-8"><title>Trait for Owned, Rc and Arc · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html">Trait for Owned, Rc and Arc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="195748161"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195748161" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195748161">(Apr 29 2020 at 18:05)</a>:</h4>
<p>Hello! I am trying to declare a struct with a generic type which i want to restrict to something can either be an owned value, an <code>rc</code> or an <code>arc</code> (or any things that can give me a reference to my target type).<br>
I've tried using <code>Deref</code> trait, but obvisouly that does not work for the "owned" case.<br>
I pasted my code here: <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=fffb76898fa8b11f38973bcc50074b9a" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=fffb76898fa8b11f38973bcc50074b9a">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=fffb76898fa8b11f38973bcc50074b9a</a></p>



<a name="195748220"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195748220" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195748220">(Apr 29 2020 at 18:05)</a>:</h4>
<p>doing this properly needs "higher-order traits" aka higher-kinded types aka GAT (generic associated types)</p>



<a name="195748398"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195748398" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195748398">(Apr 29 2020 at 18:07)</a>:</h4>
<p>It seems that every time i want to do fancy trait stuff, i end up being blocked by the lack of GAT :p</p>



<a name="195748471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195748471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195748471">(Apr 29 2020 at 18:07)</a>:</h4>
<p>yeah there is a reason people keep asking for them ;)</p>



<a name="195748685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195748685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195748685">(Apr 29 2020 at 18:09)</a>:</h4>
<p>If only i had enough knowledge to help on the matter :/<br>
In the mean time, is there a "hack" i could use?</p>



<a name="195748959"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195748959" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195748959">(Apr 29 2020 at 18:11)</a>:</h4>
<p>DID SOMEONE SAY GAT?</p>
<p>This is the SO Rust chatroom meta:</p>
<p><a href="/user_uploads/4715/mTexTOPPVUlJtAP0dX9dj-Cc/image.png" title="image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/mTexTOPPVUlJtAP0dX9dj-Cc/image.png" title="image.png"><img src="/user_uploads/4715/mTexTOPPVUlJtAP0dX9dj-Cc/image.png"></a></div>



<a name="195749002"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749002" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749002">(Apr 29 2020 at 18:12)</a>:</h4>
<p>GATs are a bit of a meme over there</p>



<a name="195749112"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749112" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749112">(Apr 29 2020 at 18:12)</a>:</h4>
<p><span class="user-mention" data-user-id="281572">@marmeladema</span> <a href="https://stackoverflow.com/q/54161441/155423" title="https://stackoverflow.com/q/54161441/155423">Is there any way to simulate Generic Associated Types / Associated Type Constructors in Rust?</a></p>



<a name="195749142"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749142" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749142">(Apr 29 2020 at 18:13)</a>:</h4>
<p>There's some small things, but nothing complete</p>



<a name="195749183"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749183" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749183">(Apr 29 2020 at 18:13)</a>:</h4>
<p>i'll read that</p>



<a name="195749211"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749211" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749211">(Apr 29 2020 at 18:13)</a>:</h4>
<blockquote>
<p>(or any things that can give me a reference to my target type</p>
</blockquote>
<p>what about <a href="https://doc.rust-lang.org/std/convert/trait.AsRef.html" title="https://doc.rust-lang.org/std/convert/trait.AsRef.html">https://doc.rust-lang.org/std/convert/trait.AsRef.html</a> ?</p>



<a name="195749283"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749283" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749283">(Apr 29 2020 at 18:14)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> do you have highlighting configured for GAT here or what? ;)</p>



<a name="195749289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749289">(Apr 29 2020 at 18:14)</a>:</h4>
<p>Or <code>Borrow</code>, if you can figure out the difference.</p>



<a name="195749322"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749322" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749322">(Apr 29 2020 at 18:14)</a>:</h4>
<p><code>kirby-dream-land</code>? <code>shepmaster-fanclub</code>? I see what you did there x)</p>



<a name="195749387"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749387" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749387">(Apr 29 2020 at 18:15)</a>:</h4>
<p>Same error <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=fdc9010cfe53af9e9b0d47e259466b98" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=fdc9010cfe53af9e9b0d47e259466b98">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=fdc9010cfe53af9e9b0d47e259466b98</a></p>



<a name="195749401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749401">(Apr 29 2020 at 18:15)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> amusingly, I'm not the primary GAT memer there. I just join in that fun.</p>
<p><span class="user-mention" data-user-id="255061">@LeSeulArtichaut</span> And I didn't even do that either ;-)</p>
<p>There was a week where all of the SO regulars had a Kirby-themed avatar. That was highly confusing.</p>



<a name="195749581"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749581" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749581">(Apr 29 2020 at 18:16)</a>:</h4>
<p><span class="user-mention" data-user-id="281572">@marmeladema</span> <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=929d0c6b211a88b78459cb9c6312adcf" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=929d0c6b211a88b78459cb9c6312adcf">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=929d0c6b211a88b78459cb9c6312adcf</a> <code>Borrow</code> works</p>



<a name="195749613"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749613" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749613">(Apr 29 2020 at 18:17)</a>:</h4>
<p>oh cool</p>



<a name="195749675"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749675" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749675">(Apr 29 2020 at 18:17)</a>:</h4>
<p>I guess there is no <code>impl&lt;T&gt; AsRef&lt;T&gt; for T {...}</code>?</p>



<a name="195749783"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749783" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749783">(Apr 29 2020 at 18:18)</a>:</h4>
<p>but why?</p>



<a name="195749860"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195749860" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195749860">(Apr 29 2020 at 18:19)</a>:</h4>
<p><code>Unlike AsRef, Borrow has a blanket impl for any T, and can be used to accept either a reference or a value.</code></p>



<a name="195750000"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195750000" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195750000">(Apr 29 2020 at 18:20)</a>:</h4>
<p>but good news is, it seems i don't need GAT after all :D</p>



<a name="195750137"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195750137" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195750137">(Apr 29 2020 at 18:21)</a>:</h4>
<p>That's also one of the key "tricks" for avoiding GATs — don't be abstract over references or not references.</p>



<a name="195750211"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195750211" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195750211">(Apr 29 2020 at 18:22)</a>:</h4>
<p>Since you said you wanted to always get a reference.</p>



<a name="195759883"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195759883" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195759883">(Apr 29 2020 at 19:38)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> i slightly modified your solution by adding a lifetime to <code>Inner</code>: <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=802b60d5e5abbc530b8c92a70c44bd57" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=802b60d5e5abbc530b8c92a70c44bd57">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=802b60d5e5abbc530b8c92a70c44bd57</a><br>
Compiler complains that the lifetime is not used. Is this intended?</p>



<a name="195759919"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195759919" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195759919">(Apr 29 2020 at 19:38)</a>:</h4>
<p>I mean, I can add a phantomData is that pleases rustc, but i don't really understand why i have to do that</p>



<a name="195761145"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195761145" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195761145">(Apr 29 2020 at 19:49)</a>:</h4>
<p>I understand it in vague terms which I both can't express cleanly and wouldn't help much <span aria-label="sweat smile" class="emoji emoji-1f605" role="img" title="sweat smile">:sweat_smile:</span> <br>
I do recommend using <code>PhantomData&lt;Inner&lt;'a&gt;&gt;</code> to please the crab though <span aria-label="crab" class="emoji emoji-1f980" role="img" title="crab">:crab:</span></p>



<a name="195761411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195761411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195761411">(Apr 29 2020 at 19:52)</a>:</h4>
<p><a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=7c2fd589dc5e1408359a34feeffccd33" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=7c2fd589dc5e1408359a34feeffccd33">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=7c2fd589dc5e1408359a34feeffccd33</a></p>



<a name="195763682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195763682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195763682">(Apr 29 2020 at 20:11)</a>:</h4>
<p><span class="user-mention" data-user-id="281572">@marmeladema</span> I'd probably just leave that bound off  <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=9b412eb117e0dc4528db53ad241e2296" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=9b412eb117e0dc4528db53ad241e2296">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=9b412eb117e0dc4528db53ad241e2296</a></p>



<a name="195766962"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195766962" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195766962">(Apr 29 2020 at 20:41)</a>:</h4>
<p>oh right ok, i was making something way more complicated that it needs to be^^</p>



<a name="195766979"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Trait%20for%20Owned%2C%20Rc%20and%20Arc/near/195766979" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Trait.20for.20Owned.2C.20Rc.20and.20Arc.html#195766979">(Apr 29 2020 at 20:41)</a>:</h4>
<p>thanks for the help</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>